package com.sunriz.motordrive.server.photoVoltaic;

import com.sunriz.motordrive.domain.DAO.PvHcInfoDAO;

import java.util.List;

/**
 * ClassName: HcInfoConfig
 * Package: com.sunriz.motordrive.server.photoVoltaic
 * Description:
 *
 * @Author BuTang
 * @Create 2024/8/14 11:14
 * @Version 1.0
 */
public interface HcInfoConfigServer {

    /**
     * 添加单条寄存器信息
     * @param pvHcInfo 寄存器信息
     */
    void addData(PvHcInfoDAO pvHcInfo);

    /**
     * 根据寄存器地址删除对应的寄存器信息
     * @param address 寄存器地址
     */
    void deleteByAddress(int address);

    /**
     * 修改对应寄存器的数据
     * @param pvHcInfo hc寄存器信息
     */
    void changeData(PvHcInfoDAO pvHcInfo);

    /**
     * 获取光伏hc的所有寄存器配置
     * @return 光伏hc的所有寄存器配置
     */
    List<PvHcInfoDAO> getAllConfig();


    PvHcInfoDAO getByAddress(int address);
}
